package com.weishi.project.training.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weishi.project.training.domain.Sportsman;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.weishi.project.training.mapper.SportsmanMatchMapper;
import com.weishi.project.training.domain.SportsmanMatch;
import com.weishi.project.training.service.ISportsmanMatchService;

/**
 * sportsmanMatchService业务层处理
 */
@Service
public class SportsmanMatchServiceImpl extends ServiceImpl<SportsmanMatchMapper, SportsmanMatch> implements ISportsmanMatchService {

    @Autowired
    private SportsmanMatchMapper sportsmanMatchMapper;

    /**
     * 查询sportsmanMatch列表
     */
    @Override
    public List<SportsmanMatch> selectSportsmanMatchList(SportsmanMatch sportsmanMatch) {
        return sportsmanMatchMapper.selectSportsmanMatchList(sportsmanMatch);
    }

    @Override
    public List<Sportsman> querySportsNameList() {
        return sportsmanMatchMapper.querySportsNameList();
    }

    @Override
    public SportsmanMatch getSportsmanMatchById(int id) {
        return sportsmanMatchMapper.getSportsmanMatchById(id);
    }

    @Override
    public void updateSportsmanMatchById(SportsmanMatch sportsmanMatch) {
        sportsmanMatchMapper.updateSportsmanMatchById(sportsmanMatch);
    }

    @Override
    public String queryBySprotsmanId(int sportsmanId) {
        return sportsmanMatchMapper.queryBySprotsmanId(sportsmanId);
    }


}